package com.mo.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/provide")
@RefreshScope //开启动态刷新
public class ProductController {

	@Value("${name}")
	private String name;

	@RequestMapping(value = "/test")
	public String test() {
		return name;
	}
}
